<?php

namespace app\popo\model;

use Carbon\Carbon;
/**
 * employee 员工信息
 * @property integer $id 主键(主键)
 * @property string $name 姓名
 * @property string $username 用户名
 * @property string $password 密码
 * @property string $phone 手机号
 * @property string $sex 性别
 * @property string $id_number 身份证号
 * @property integer $status 状态 0:禁用，1:启用
 * @property Carbon $create_time 创建时间
 * @property Carbon $update_time 更新时间
 * @property int $create_user 创建人
 * @property int $update_user 修改人
 */
class Employee extends BaseModel
{
    
    /**
     * The table associated with the model.
     *
     * @var string
     */
    protected $table = 'employee';

    /**
     * The primary key associated with the table.
     *
     * @var string
     */
    protected $primaryKey = 'id';

    /**
     * Indicates if the model should be timestamped.
     *
     * @var bool
     */
    public $timestamps = true;
    protected $guarded = array();
    protected bool $auto_fill_create_user = true;
    protected bool $auto_fill_update_user = true;
    protected $casts = [
        self::CREATED_AT => 'datetime:Y-m-d H:i:s',
        self::UPDATED_AT => 'datetime:Y-m-d H:i:s',
    ];

}
